﻿using System;

namespace IoCSample
{
    public class ReportEngine
    {
        private  string _data;

        public ReportEngine(string data)
        {
            _data = data;
        }

        public void Show()
        {
            Trim();
            Clean();
            Display();
        }

        public virtual void Trim()
        {
            _data = _data.Trim();
        }

        public virtual void Clean()
        {
            _data = _data.Replace("@", "");
            _data = _data.Replace("-", "");
        }

        public virtual void Display()
        {
            Console.WriteLine(_data);
        }

    }
}